<?php

namespace App\Params\Common;

use App\Params\BaseParam;

class SpecialEditStatusParams extends BaseParam
{
    public $mid;

    public $special_id;

    public $status;

    public function rules()
    {
        return [
            'mid'        => 'required|string',
            'special_id' => 'required|integer',
            'status' => 'required|in:0,1',
        ];
    }

    public function message()
    {
        return [
            "mid.required"       => "商户号不能为空",
            "special_id.required"     => "藏品编号不能为空",
            "special_id.integer"     => "藏品编号异常",
            "status.required"     => "状态不能为空",
            "status.in"     => "状态参数异常",
        ];
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getSpecialId()
    {
        return $this->special_id;
    }

    public function getStatus()
    {
        return $this->status;
    }
}
